package com.cruising.backend.mapper;

import com.cruising.backend.entity.ReportFiles;
import com.cruising.backend.entity.Reports;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yezi
 * @since 2025-04-21
 */
@Mapper
public interface ReportsMapper extends BaseMapper<Reports> {

    List<Reports> getReports(String searchText, String startDate, String endDate, String sortType, String types, String labels, String role);
    
    // 根据举报ID获取相关文件列表
    List<ReportFiles> getReportFiles(Integer reportId);
}
